# 加载代码
path = File.dirname(__FILE__).force_encoding('utf-8')
files = [
 File.join(path, 'chen_RebarTools_sleeve/sleeve.rb'),
 #File.join(path, 'chen_RebarTools/elbowRebar.rb')
]
files.each{|file|
 next unless File.file?(file)
 load file
}

# 新增工具条
menu = UI.menu('Extensions')
toolbar = UI::Toolbar.new "套筒——钢之术士工具条"


cmd = UI::Command.new("create_sleeve"){
    Sleeve.create_Dialog
}
cmd.large_icon = cmd.small_icon = "chen_RebarTools_sleeve/image/sleeve.png"
cmd.tooltip = "创建钢筋套筒"
cmd.status_bar_text = "这是创建钢筋套筒的插件"
toolbar.add_item cmd


toolbar.show
#menu.add_item cmd
